function [maps, XY] = loadMapsFromList(list, mapType)
% loadMapsFromList
%
% Syntax: [maps, XY] = loadMapsFromList(list, mapType)
%
% list -- list of expt names (e.g. from cellLists)
% mapType -- e.g. genMean, apNumber
%
% See also cellLists

% gs 2004 dec
% ----------------------------------------------
[numCells, c] = size(list);

for n = 1:numCells
    cellA = eval([list(n,:)]);      
    XY(:,:,n) = cellA.xy;               
    map = eval(['cellA.' mapType]);                
    maps(:,:,n) = map;
end
XY = squeeze(XY);
XY = shiftdim(XY,3);